<div class="docs">
  <h1>
	<?php echo "Versions:" ?>
  </h1>
  <table cellspacing="3" border="true">
    <thead>
      <tr>
        <th>
          Name
        </th>
        <th>
          Description
        </th>
        <th>
          Downloader
        </th>
        <th>
          Versions
        </th>
       </tr>
    </thead>
    <tbody>
      <?php if (!empty($files)): ?>
        <?php foreach ($files as $file):?>
          <tr>
            <td class="name">
              <?php echo $file->getName_for_users(); ?>
            </td>
            <td class="description">
              <?php echo $file->getDescription(); ?>
            </td>
            <td class="user">
                <?php if ($file->getUser()==''): ?>
                    Nobody
                <?php else:?>
                   <?php echo $file->getLastLoaderFullName(); ?>
                <?php endif;?>
            </td>
            <td class="description">
              <?php echo $file->getVersion(); ?>
            </td>
           <td>
                <a href="<?php echo url_for('download', $file) ?>">Download</a>
           </td>
           <?php endforeach; ?>
           <?php endif;?>
           </tr>
     </tbody>
  </table>
</div>
